package physicalobject;

public class Spring extends Connector {

    /**
     * Constructor for spring.
     * @param start the mass on one end of the spring
     * @param end the mass on the other end of the spring
     * @param length the rest length of the spring
     * @param kVal the "springiness" of the spring
     */
    public Spring (final Mass start, final Mass end, final double length,
            final double kVal) {
        super(start, end, length, kVal);
    }

    @Override
    public double getLength (double timeElapsed) {
        return myLength;
    }
}
